package com.skt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skt.domain.PO.RentalExtension;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

/**
 * 租赁续期 Mapper 接口
 */
@Mapper
public interface RentalExtensionMapper extends BaseMapper<RentalExtension> {
    
    /**
     * 根据订单ID查询续期记录
     */
    List<RentalExtension> selectByOrderId(Long orderId);
    
    /**
     * 根据续期编号查询
     */
    RentalExtension selectByExtensionNo(String extensionNo);
    
    /**
     * 查询订单的最新续期记录
     */
    RentalExtension selectLatestByOrderId(Long orderId);
}